 <{extends file="<{$tempdir}>/public/admin.html"}> 
   <{block name=extendjs}>
<script type="text/javascript" language="javascript" src="<{$siteurl}>/templates/<{$tempdir}>/public/js/artdialog/plugins/iframeTools.js"></script>
 <{/block}>
 <{block name=controlname}>所有店铺展示列表<{/block}>
 <{block name=bodylist}>

      <div style="width:auto;overflow-x:hidden;overflow-y:auto">  
      	 
      	<div class="search">
      		 
            
            <div class="search_content">
            	 
            	 <form method="get" name="form1" action="<{ofunc type=url link="/adminpage/card/module/virtualinfo"}>">
            	   <input type="hidden" name="ctrl" value="adminpage">
            	   <input type="hidden" name="action" value="card">
             	   <input type="hidden" name="module" value="virtualinfo">
            	   <label>店铺名</label>
            	   <input type="text" name="shopname" value="<{$shopname|default:''}>"> 
				   
             	   <label>用户名：</label>
            	   <input type="text" name="username" value="<{$username|default:''}>">                 
                  <label>手机：</label>
            	   <input type="text" name="phone" value="<{$phone|default:''}>">   
					<label>店铺类型：</label>				   
					<select name="shop_type" >
						<option <{if $shop_type == 0}>selected<{/if}> value="0">请选择店铺类型</option>
						<option <{if $shop_type == 1}>selected<{/if}> value="1">外卖</option>
						<option <{if $shop_type == 2}>selected<{/if}> value="2">超市</option>
					</select>
				  
				  
            	    <input type="submit" value="提交查询" class="button">  
            	 </form>
            </div>       
        
      	</div>
      	<style>
		.selectobjlist{height:auto!Important;padding:10px; border:none!Important;}
		.selectobjlist li{ margin-right:0px!Important; width:33%!Important; text-align:left; float:left; height:auto;  }
		.selectobjlist font{cursor:pointer;}
		</style>
      	
           <div class="tags">

      	  
          <div id="tagscontent">

            <div id="con_one_1">

              <div class="table_td" style="margin-top:10px;">

              <form method="post" action="" onsubmit="return remind();"  id="delform">
 
 
 						
			 
			
			 
                    <ul class="selectobjlist">
                       <{foreach from=$selectlist item=items}> 
                          <li>
 						  
  					  <font color=red><{$items['shopname']}></font>[<font color=#0086ae><{$shoptype[$items['shoptype']]}></font>]
  					 &nbsp;  <font  onclick="addshopsellcount('<{$items['id']}>','<{$items['virtualsellcounts']|default:0}>');"  color=red style="font-weight:bold; font-size:16px;">增</font>&nbsp;&nbsp;&nbsp;
					
					<a href="<{ofunc type=url link="/adminpage/card/module/virtualgoods/id/<{$items['id']}>"}>" >
					<font color=#0086ae style="font-weight:bold; font-size:16px;">查</font>
					 </a> 
					  
					  </li> 
 					  
                        <{/foreach}> 

					</ul>
 
				 
			
			
			
                <div class="blank20"></div>

                 
                </form>

                <div class="page_newc">
                        <div class="show_page"><ul>
				 
						<{$pagecontent}>
					 
						</ul></div>
                 </div>
<div class="page_newc">
						
									<div class="select_page" style="color:red;width:800px;">
									<a style="color#FF6600;width:800px;" href="jvascript:void(0);"  >
									温馨提示：①增：增加店铺虚拟总销量(展示的总销量=虚拟店铺总销量+实际店铺总销量)
									<br />  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									②查：查看店铺的所有商品，可以增加商品的虚拟评论以及商品的总销量
									</a> 
										  </div>
								 
								 </div>
                <div class="blank20"></div>

              </div>

            </div>

          </div>

        </div>

        
  </div>
  
  
  
  
  
 
</div>  
<script>
var dialogs ;
function addshopsellcount(shopid,shopsellcount){
var	htmls = '<form method="post" id="doshwoform" action="#" style="text-align:center;"><table>';
	htmls += '<tbody><tr>';
	htmls += '<td height="50px">虚拟总销量:</td>';
	htmls += '<td> <input type="text" name="savesellcounts" value="'+shopsellcount+'" style="width:100px;"></td></tr>';
	htmls += '</tbody></table> ';
  htmls += '<input type="hidden" value="'+shopid+'" name="shopid"> ';
	htmls += '<input type="button" value="确认提交" class="button" id="saveshopsellcounts" ></form>';
  art.dialog({
    id: 'testID3',
    title:'增加店铺虚拟总销量',
    content: htmls
  });
}

$('#saveshopsellcounts').live('click',function(){ 
	$.post('<{ofunc type=url link="/adminpage/card/module/saveshopsellcount/datatype/json"}>', $('#doshwoform').serialize() ,function (data, textStatus){  
			if(data.error == false){
     		diasucces(data.msg,'');
     	}else{
     		if(data.error == true)
     		{
     			diaerror(data.msg); 
     		}else{
     			diaerror(data); 
     		}
     	} 
	 }, 'json'); 
});

	</script>

<!--newmain 结束-->
<{/block}>